package com.vsd.service;


import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import com.demo.domain.UserCreateForm;
import com.vsd.domain.User;

/**
 * 用户服务网接口定义
 * 
 * @author jiekechoo
 *
 */
public interface UserService {

	 

	User getUserByUsername(String username);
	
	Page<User> findByPhone(String phone, Pageable p);

	 
	Object listAllUsers(Pageable p);

	Object getUserList(int current, int rowCount, String searchPhrase);
	
	int countByAccount(String account);
	
	User save(User user);
	
	User getUserByUsernameAndPassword(String username,String password);
	
	void updatePassword(String username,String password);
	
	User findByPrimaryKey(String id);

	int countByCreateTime(Date d);
	
	Page<User> findAll( Pageable p);
	
	int updateByPrimaryKey(User u );

}
